package cn.vshare.service.impl;

import cn.vshare.dao.KindDao;
import cn.vshare.entity.Kind;
import cn.vshare.service.KindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("kindService")
public class KindServiceImpl implements KindService {
    @Autowired
    private KindDao kindDao;
    @Override
    public List<Kind> queryAllKind() {
        List<Kind> list = kindDao.queryAllKind();
        return list;
    }

    @Override
    public List<Kind> queryAllKindByUserId(String userId) {
        return kindDao.queryAllKindByUserId(userId);
    }

    @Override
    public Kind queryKind(Kind kind) {
        return kindDao.queryKind(kind);
    }

    public KindDao getKindDao() {
        return kindDao;
    }

    public void setKindDao(KindDao kindDao) {
        this.kindDao = kindDao;
    }
}
